package com.zhouyu;

import org.springframework.context.ApplicationContextInitializer;
import org.springframework.context.ConfigurableApplicationContext;

/**
 * @author leimingchao
 * create 2025-06-05 21:20
 */
public class ZhouyuApplicationContextInitializer implements ApplicationContextInitializer<ConfigurableApplicationContext> {

	@Override
	public void initialize(ConfigurableApplicationContext applicationContext) {

		//注册到singletonObjects中并且会在manualSingletonNames存一下
		applicationContext.getBeanFactory().registerSingleton("zhouyuTypeExcludeFilter", new ZhouyuTypeExcludeFilter());
	}
}
